package inventory.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class Equipment extends Model<Equipment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "equipment_id", type = IdType.UUID)
    private String equipmentId;
    private String materialTypicalId;
    private String repositoryId;
    @TableField("IMEI")
    private String imei;
    private String belonging;
    private Date storageTime;
    private Date forbackOrReceiveTime;
    private Integer status;
    private String trace;


    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getMaterialTypicalId() {
        return materialTypicalId;
    }

    public void setMaterialTypicalId(String materialTypicalId) {
        this.materialTypicalId = materialTypicalId;
    }

    public String getRepositoryId() {
        return repositoryId;
    }

    public void setRepositoryId(String repositoryId) {
        this.repositoryId = repositoryId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getBelonging() {
        return belonging;
    }

    public void setBelonging(String belonging) {
        this.belonging = belonging;
    }

    public Date getStorageTime() {
        return storageTime;
    }

    public void setStorageTime(Date storageTime) {
        this.storageTime = storageTime;
    }

    public Date getForbackOrReceiveTime() {
        return forbackOrReceiveTime;
    }

    public void setForbackOrReceiveTime(Date forbackOrReceiveTime) {
        this.forbackOrReceiveTime = forbackOrReceiveTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTrace() {
        return trace;
    }

    public void setTrace(String trace) {
        this.trace = trace;
    }

    @Override
    protected Serializable pkVal() {
        return this.equipmentId;
    }

    @Override
    public String toString() {
        return "Equipment{" +
        ", equipmentId=" + equipmentId +
        ", materialTypicalId=" + materialTypicalId +
        ", repositoryId=" + repositoryId +
        ", imei=" + imei +
        ", belonging=" + belonging +
        ", storageTime=" + storageTime +
        ", forbackOrReceiveTime=" + forbackOrReceiveTime +
        ", status=" + status +
        ", trace=" + trace +
        "}";
    }
}
